import { http } from "/@/utils/http";

/** 查询物料列表 */
export const getListApi = (params) => {
  return http.request<YTableRemoteResult>("get", "/api/psi/material/list", { params });
};

export const getApi = (id) => {
  return http.request("get", "/api/psi/material/" + id);

}

/** 创建物料 */
export const createApi = (data) => {
  return http.request("post", "/api/psi/material", { data });
};

/** 修改物料 */
export const updateApi = (data) => {
  return http.request("put", "/api/psi/material", { data });
};

/** 删除物料 */
export const deleteApi = (ids) => {
  return http.request("delete", "/api/psi/material/" + ids);
};